package ${package_name}.model;
import javax.persistence.*;
import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
/**
* @author ${author}
* @date ${date}
*/
//@Entity
@TableName(value="${table_name}")
public class ${table_name} extends Model<${table_name}> {

    <#if model_column?exists>
        <#list model_column as model>
    /**
     *${model.remarks!}
     */
    <#if (model.columnName = 'Id')>
    @TableId(type=IdType.AUTO)
    </#if>
    <#if (model.dataTypeName = 'INT')>
    private Integer ${model.columnName?uncap_first};

    </#if>
    <#if (model.dataTypeName = 'VARCHAR' || model.dataTypeName = 'text')>
    private String ${model.columnName?uncap_first};

    </#if>
    <#if model.dataTypeName = 'TIMESTAMP' >
    private Date ${model.columnName?uncap_first};

    </#if>
        </#list>
    </#if>

<#if model_column?exists>
<#list model_column as model>
    <#if (model.dataTypeName = 'INT')>
    public Integer get${model.columnName}() {
        return this.${model.columnName?uncap_first};
    }

    public void set${model.columnName}(Integer ${model.columnName?uncap_first}) {
        this.${model.columnName?uncap_first} = ${model.columnName?uncap_first};
    }

    </#if>
<#if (model.dataTypeName = 'VARCHAR' || model.dataTypeName = 'text')>
    public String get${model.columnName}() {
        return this.${model.columnName?uncap_first};
    }

    public void set${model.columnName}(String ${model.columnName?uncap_first}) {
        this.${model.columnName?uncap_first} = ${model.columnName?uncap_first};
    }

</#if>
<#if model.dataTypeName = 'TIMESTAMP' >
    public Date get${model.columnName}() {
        return this.${model.columnName?uncap_first};
    }

    public void set${model.columnName}(Date ${model.columnName?uncap_first}) {
        this.${model.columnName?uncap_first} = ${model.columnName?uncap_first};
    }

</#if>
</#list>
</#if>
	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}